#ifndef ROUTELISTFORM_H
#define ROUTELISTFORM_H

#include <QWidget>
#include <QList>
#include <QDesktopServices>
#include <QUrl>
#include <QMessageBox>
#include "geocaching.h"
#include "addroutedialog.h"
#include "editroutedialog.h"

// Форма "Список маршрутов".

namespace Ui {
class RouteListForm;
}

class RouteListForm : public QWidget
{
    Q_OBJECT

public:
    explicit RouteListForm(Geocaching*, QWidget *parent = 0);
    ~RouteListForm();
    void activateWindow();
private:
    Ui::RouteListForm *ui;
    Geocaching *myProg;
private slots:
    void UpdateForm(void);
    void on_addRouteButton_clicked();
    void on_editRouteButton_clicked();
    void on_deleteRouteButton_clicked();
    void on_routeListWidget_doubleClicked(const QModelIndex &index);
    void on_routeFindLineEdit_returnPressed();
    void on_viewSelectedButton_clicked();
    void on_hideSelectedButton_clicked();
    void on_propertyListWidget_doubleClicked(const QModelIndex &index);
    void on_routeListWidget_currentRowChanged(int currentRow);
};

#endif // ROUTELISTFORM_H
